<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
</body>
<script type="text/javascript" src="js/JnPakg.js"></script>
<script type="text/javascript">
(function(){
	dw("05_this的奇怪用法[3].html");
})();

//利用this的特性来创建一个Map类
function Map(){
	this.put = function(key,value){
		this[key] = value;
	}
	this.get = function(key){
		return this[key];
	}
}
Map.prototype["x1"] = 10;
Map.x = "a";

for(var i in Map){
	dw(i);
}
dw.dl();

for(var i in Map.prototype){
	dw(i);
}
dw.dl();

var map = new Map();
map.put("1","一");
map.put("1","二");
for(var i in map){
	dw(i);
}

</script>
</html>